<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>编辑院系</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!--<meta http-equiv="refresh" content="5;url='__URL__/collegedetail'">-->
	<script type="text/javascript" src="__JS__/jshelper.js"></script> 
<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/collegedetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>

</head>
<body>
	<!-- layout::Auth:header::0 -->
    	<div class="container-fluid">
     			<div class="row-fluid">
                	<!-- layout::Auth:leftmenu::0 -->
                    	<div class="span8">
                          <div class="hero-unit">
                            <h1>院系编辑</h1>
                            <p style="font-size:12px">当前位置：
                            	<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                                <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                                <a href="__URL__/collegedetail" class="nowpositionhref">院系管理</a>>
                                <a href="__URL__/collegeedit"  class="nowpositionhref">院系编辑</a>
                            </p>
                          </div>

                          <table>
                          	<thead>
                            	
                            	<tr>
                                	<form id="form2" method="post">
                                	<th>
                                    	<a class="btn btn-success" href="__URL__/adddcustom/id/<?php echo ($vo["id"]); ?>">创建院系主页</a>
                                    </th>
                                    <th>
                                    	
                                    </th>
                                    <th>
                                    	
                                        <input type='hidden' name='id' value =<?php echo ($c["id"]); ?>>
                                        <input type='hidden' name='departmentid' value='<?php echo ($c["departmentid"]); ?>'>
                                        <input   type= "button"   name= "btn1 " class="btn btn-warning"   value= "主页修改 "   onclick= "subform('__URL__/dcustomedit'); ">
                                        <input   type= "button"   name= "btn2 "  class="btn btn-danger"  value= "主页删除 "   onclick= "subform('__URL__/dcustomdelete'); ">
                                        
                                    </th>
                                
                                </form>
                               </tr>
                            </thead>
                            <tbody>
                          
                            	<form id='form1' method="post" action="__URL__/collegeupdate" >
                            	<tr>
                                	<td><input type="hidden" name="id" value=<?php echo ($vo["id"]); ?>></td>
                                    <td>
                                    	<input class="input-xxlarge disable"  type="text" id="disabledInput" disabled value="<?php echo ($vo["name"]); ?>">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                	<td></td>
                                    <td><input class="input-xxlarge" name="name" type="text"  placeholder="修改院系名称"></td>
                                    <td><input type="submit" value="更新" class="btn btn-success"></td>
                                </tr>
                                </form>
                            </tbody>
                          </table>
						</div>
                       </div>
                      </div>
                    
	<script src="__JS__/placeholderIEshow.js"></script>
</body>
</html>